package com.zhongyouyun.admin.mapper;

import com.zhongyouyun.admin.model.MenuModel;
import com.zhongyouyun.admin.model.RoleMenuModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongyouyun.admin.model.RoleModel;
import com.zhongyouyun.admin.model.UserModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 角色资源中间表Mapper
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenuModel> {

    List<MenuModel> selectMenuList(RoleModel roleModel);

    List<MenuModel> findPermissions(UserModel userModel);
}
